use serde::{Deserialize, Serialize};
pub mod dish;
pub mod employee;
pub mod setmeal;
pub mod user;
pub mod order;
pub mod report;
use sea_orm::DeleteResult;

#[derive(Debug, Serialize, Deserialize)]
pub struct PageResult<T> {
    // 总记录数
    pub total: u64,

    // 当前页数据集合
    pub records: Vec<T>,
}

pub fn rows_warp(value: DeleteResult) -> u64 {
    value.rows_affected
}
